package com.gujiangbo.algorithm;

import java.math.BigDecimal;

public class DecimalTest {

    public static void main(String[] args) {
        Person person = new Person();
        person.setOfmoney2(new BigDecimal(-23.5));

        int i = person.getOfmoney2().compareTo(BigDecimal.ZERO);
        System.out.println(i);

        BigDecimal bigDecimal = new BigDecimal(5.21);
        BigDecimal bigDecimal1 = new BigDecimal(5);


    }
}
